package org.example.dao;

import org.example.entity.Supplier;

import java.sql.SQLException;
import java.util.List;

public interface SuppliersDao {
//    定义功能方法
//    1.新增
    public int addSupplier(Supplier supplier) throws SQLException, ClassNotFoundException;
//    2.删除
    public int deleteSupplier(Supplier supplier) throws SQLException, ClassNotFoundException;
//    3.更新
    public int updateSupplier(Supplier supplier) throws SQLException, ClassNotFoundException;
//    4.查询一个
    public Supplier queryOneSupplier(Supplier supplier) throws SQLException, ClassNotFoundException;
//    5.查询所有
    public List<Supplier> queryAllSuppliers(int pageIndex,int pageNumber) throws SQLException, ClassNotFoundException;
}

